package com.jyw.system.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.FieldNameConstants;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jyw.common.annotation.Excel;
import com.jyw.common.core.domain.BaseEntity;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

/**
 * 用户部门角色关联对象 sys_user_dept_role
 * 
 * @author system
 * @date 2023-08-09
 */
@Data
@TableName("sys_user_dept_role")
@ApiModel("用户部门角色关联实体")
@FieldNameConstants
public class SysUserDeptRole
{
    private static final long serialVersionUID = 1L;

    /** 关系主键 */
    @ApiModelProperty("关系主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户主键 */
    @ApiModelProperty("用户主键")
    @Excel(name = "用户主键")
    private Long userId;

    /** 科室主键 */
    @ApiModelProperty("科室主键")
    @Excel(name = "科室主键")
    private Long deptId;

    /** 角色主键 */
    @ApiModelProperty("角色主键")
    @Excel(name = "角色主键")
    private Long roleId;

    /** 是否默认 */
    @ApiModelProperty("是否默认")
    @Excel(name = "是否默认")
    private Integer isDefault;

}
